#include <stdio.h>
int main( )
{
	int m = 0,n = 0;
	printf("Enter m,n;");
	scanf("%d %d",&m,&n);
	while(m!=n)
	{
		while(m>n) m = m-n;
		while(n>m) n = n-m;
	}
	printf("m=%d\n",m);
	return 0;
}
